package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.Process;
import com.koocloud.electroplatemanage.pojo.ProcessCheck;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProcessCheckMapper {
    //根据工单号查询数据
    ProcessCheck selectByWorkOrderNumber(String workOrderNumber);

    //查询技术要求所有记录
    List<ProcessCheck> selectAllData(ProcessCheck processCheck);

    //新增一条数据
    int insert(ProcessCheck processCheck);

    //逻辑删除一条数据
    int delete(@Param("id")String id, @Param("userId")String userId, @Param("deleteFlag") String deleteFlag);

    //进入下一步的状态
    int changeState(String workOrderNumber);

    //根据工单号修改一条数据
    int update(ProcessCheck processCheck);
    //根据工单号查询记录数
    int selectWorkOrderNumberCount(String workOrderNumber);
}
